{% extends "layout.html" %}
{% block body %}

  <!-- Content Wrapper. Contains page content -->

    <!-- Content Header (Page header) -->
    <section class="content-header">
      <h1>
        Dashboard
        <small>Control panel</small>
      </h1>

      <ol class="breadcrumb">
        <li><a href="#"><i class="fa fa-dashboard"></i> Home</a></li>
        <li class="active">Dashboard</li>
      </ol>
    </section>
    <table class="table table-striped">
      <tr>
        <td>序号</td>
        <td>工号</td>
        <td>用户名称</td>
        <td>工作城市</td>
        <td>上传时间</td>
        <td>文件地址</td>
        <td>文件下载</td>
      </tr>
             {% for l in datas.list %}
       <tr>
        <td>{{ l['id']}}</td>
        <td>{{ l['uid']}}</td>
        <td>{{ l['user_name']}}</td>
        <td>{{ l['city']}}</td>
        <td>{{ l['insert_date']}}</td>
        <td><img src="{{l['url']}}"  width="200px"></td>
           <td><a href="{{l['url']}}"  download="{{l['id']}}">下载</a></td>

      </tr>
        {%endfor%}

    </table>


      <ul class="pagination" >
       {% if datas.show_shouye_status==1%}
           <li class=''><a href='/all?p=1'>首页</a></li>
           <li class=''><a href='/all?p={{datas.p-1}}'>上一页</a></li>
      {%endif%}

       {% for dic in datas.dic_list %}
           {% if dic==datas.p%}
             <li class="active"><a href="/all?p={{dic}}">{{dic}}</a></li>
           {%else%}
               <li><a href="/all?p={{dic}}">{{dic}}</a></li>
           {%endif%}
        {%endfor%}

       {% if datas.p < datas.total%}
            <li class=''><a href='/all?p={{datas.p+1}}'>下一页</a></li>
            <li class=''><a href='/all?p={{datas.total}}'>尾页</a></li>
       {%endif%}
            共{{datas.total}}页
 </ul>

    <!-- Main content -->
     <!-- /.content -->
  </div>

  <!-- /.content-wrapper -->
{% endblock %}